package com.weixing.mall.leaf.api.hystrix;

import com.weixing.mall.leaf.api.service.IdGenServiceRpc;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName IdGenServiceFallback
 * @Description
 * @Author Small
 * @Date 2019/10/14 16:09
 * @Version 1.0
 **/
@Component
@Slf4j
public class IdGenServiceFallback implements IdGenServiceRpc {
    @Override
    public long segmentKey(String key) {
        log.warn("【segment】获取id服务异常");
        return 0;
    }

    @Override
    public long snowFlakeKey(String key) {
        return 0;
    }
}
